package com.dys.hejiayuncommunity.system.domain.dto;

import java.io.Serializable;
import java.util.List;

/**
 * @className: com.dys.hejiayuncommunity.system.domain.dto.AreaDTO
 * @description: 区域层级模型
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/12/04 22:58
 */
public class AreaDTO implements Serializable {
    static final long serialVersionUID = 1L;
    /**
     * 城市编码(区划码)
     */
    private Integer code;

    /**
     * 城市名称(区划名称)
     */
    private String name;

    /**
     * 子级区划码(字级城市)
     */
    private List<AreaDTO> children;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<AreaDTO> getChildren() {
        return children;
    }

    public void setChildren(List<AreaDTO> children) {
        this.children = children;
    }
}
